
package com.itheima.controller;
import com.itheima.service.CompanyService;
import com.itheima.service.impl.CompanyServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(urlPatterns="/store/company")
public class CompanyServlet extends HttpServlet {
    CompanyService companyService = new CompanyServiceImpl();
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String operation = req.getParameter("operation");
        if("list".equals(operation)){
            //接收数据
            String page = req.getParameter("page");
            //转发请求
            //响应结果
            //转发页面
        }else if("list".equals(operation)){

        }

    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        this.doPost(req, resp);
    }
}


